home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
xcmd
/
xcmdmens.sit
/
xcmd-menus.sit
/
Menus For HyperCard™
/
card_4962.txt
< prev
next >
Wrap
Text File
|
1989-07-14
|
3KB
|
155 lines
-- card: 4962 from stack: in
-- bmap block id: 2246
-- flags: 0000
-- background id: 3001
-- name: Index Card
----- HyperTalk script -----
on mouseDown
get short name of target
if it is not "Index Card" then
visual effect zoom out
go to card it
end if
end mouseDown
-- part 1 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=310 top=45 right=68 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: NewMenu
-- part 3 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=310 top=74 right=96 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: DeleteMenu
-- part 4 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=310 top=102 right=126 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: EnableMenu
-- part 5 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=310 top=133 right=156 bottom=465
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: CheckMenu
-- part 6 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=310 top=191 right=215 bottom=465
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ShowMenu
-- part 9 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=13 top=302 right=328 bottom=168
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return To Title Page
----- HyperTalk script -----
on mouseUp
visual effect dissolve
go to card "Title Page"
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=215 top=248 right=313 bottom=416
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
get FileName("STAK")
if it is not empty then copyCommands it
end mouseUp
on copyCommands toStack
put the value of word 2 of long name of this stack into fromStack
answer "Copy to " & quote & toStack & quote & " ?" with "CANCEL" or "OK"
if it is "OK" then
set cursor to 4
ModResCopy fromStack,toStack,"XFCN","NewMenu"
ModResCopy fromStack,toStack,"XFCN","DeleteMenu"
ModResCopy fromStack,toStack,"XCMD","EnableMenu"
ModResCopy fromStack,toStack,"XCMD","CheckMenu"
ModResCopy fromStack,toStack,"XCMD","ChangeMenu"
ModResCopy fromStack,toStack,"XCMD","ShowMenu"
set cursor to 1
answer "Copy finished!" with "OK"
end if
end copyCommands
-- part 13 (button)
-- low flags: 00
-- high flags: 8002
-- rect: left=310 top=162 right=185 bottom=465
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ChangeMenu